import request from '@/utils/request'

export function insertRolePermission(data) {
  return request({
    url: '/auth/rolePermission/insertRolePermission',
    method: 'post',
    data
  })
}

export function deleteRolePermission(data) {
  return request({
    url: '/auth/rolePermission/delete/' + data.roleId + '/and/' + data.permissionId,
    method: 'delete',
    data
  })
}
